package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:26 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class WorkspaceConfigProperty implements java.io.Serializable {

  public WorkspaceConfigProperty() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private String configProperty;

  /** Attribute configProperty Be Seted Falg */
  private boolean configPropertySetted = false;

  /** Attribute configProperty is Null Falg */
  private boolean configPropertyNull = false;

  /**
   * Get configProperty
   *
   * @return String
   */
  public final String getConfigProperty() {

    if (isConfigPropertyNull()) {
      return null;
    } else {
      return StringUtils.trim(configProperty);
    }
  }

  /**
   * Set configProperty
   *
   * @param String
   */
  public final void setConfigProperty(String configProperty) {

    this.configProperty = StringUtils.trim(configProperty);

    this.configPropertySetted = true;

    this.setConfigPropertyNull(this.configProperty == null);
  }

  /**
   * Get configProperty Has Been Setted
   *
   * @return boolean
   */
  public final boolean isConfigPropertySetted() {
    return this.configPropertySetted;
  }

  /** Set configProperty Null */
  public final void setConfigPropertyNull() {

    this.configPropertyNull = true;
  }

  public final void setConfigPropertyNull(boolean aNullFlag) {

    this.configPropertyNull = aNullFlag;
  }

  public final boolean isConfigPropertyNull() {

    return this.configPropertyNull;
  }

  private String configValue;

  /** Attribute configValue Be Seted Falg */
  private boolean configValueSetted = false;

  /** Attribute configValue is Null Falg */
  private boolean configValueNull = false;

  /**
   * Get configValue
   *
   * @return String
   */
  public final String getConfigValue() {

    if (isConfigValueNull()) {
      return null;
    } else {
      return StringUtils.trim(configValue);
    }
  }

  /**
   * Set configValue
   *
   * @param String
   */
  public final void setConfigValue(String configValue) {

    this.configValue = StringUtils.trim(configValue);

    this.configValueSetted = true;

    this.setConfigValueNull(this.configValue == null);
  }

  /**
   * Get configValue Has Been Setted
   *
   * @return boolean
   */
  public final boolean isConfigValueSetted() {
    return this.configValueSetted;
  }

  /** Set configValue Null */
  public final void setConfigValueNull() {

    this.configValueNull = true;
  }

  public final void setConfigValueNull(boolean aNullFlag) {

    this.configValueNull = aNullFlag;
  }

  public final boolean isConfigValueNull() {

    return this.configValueNull;
  }

  private String description;

  /** Attribute description Be Seted Falg */
  private boolean descriptionSetted = false;

  /** Attribute description is Null Falg */
  private boolean descriptionNull = false;

  /**
   * Get description
   *
   * @return String
   */
  public final String getDescription() {

    if (isDescriptionNull()) {
      return null;
    } else {
      return StringUtils.trim(description);
    }
  }

  /**
   * Set description
   *
   * @param String
   */
  public final void setDescription(String description) {

    this.description = StringUtils.trim(description);

    this.descriptionSetted = true;

    this.setDescriptionNull(this.description == null);
  }

  /**
   * Get description Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDescriptionSetted() {
    return this.descriptionSetted;
  }

  /** Set description Null */
  public final void setDescriptionNull() {

    this.descriptionNull = true;
  }

  public final void setDescriptionNull(boolean aNullFlag) {

    this.descriptionNull = aNullFlag;
  }

  public final boolean isDescriptionNull() {

    return this.descriptionNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private long workspaceConfigId;

  /** Attribute workspaceConfigId Be Seted Falg */
  private boolean workspaceConfigIdSetted = false;

  /** Attribute workspaceConfigId is Null Falg */
  private boolean workspaceConfigIdNull = false;

  /**
   * Get workspaceConfigId
   *
   * @return long
   */
  public final long getWorkspaceConfigId() {

    return workspaceConfigId;
  }

  /**
   * Set workspaceConfigId
   *
   * @param long
   */
  public final void setWorkspaceConfigId(long workspaceConfigId) {

    this.workspaceConfigId = workspaceConfigId;

    this.workspaceConfigIdSetted = true;

    this.setWorkspaceConfigIdNull(false);
  }

  /**
   * Get workspaceConfigId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceConfigIdSetted() {
    return this.workspaceConfigIdSetted;
  }

  /** Set workspaceConfigId Null */
  public final void setWorkspaceConfigIdNull() {

    this.workspaceConfigIdNull = true;
  }

  public final void setWorkspaceConfigIdNull(boolean aNullFlag) {

    this.workspaceConfigIdNull = aNullFlag;
  }

  public final boolean isWorkspaceConfigIdNull() {

    return this.workspaceConfigIdNull;
  }

  private long workspaceId;

  /** Attribute workspaceId Be Seted Falg */
  private boolean workspaceIdSetted = false;

  /** Attribute workspaceId is Null Falg */
  private boolean workspaceIdNull = false;

  /**
   * Get workspaceId
   *
   * @return long
   */
  public final long getWorkspaceId() {

    return workspaceId;
  }

  /**
   * Set workspaceId
   *
   * @param long
   */
  public final void setWorkspaceId(long workspaceId) {

    this.workspaceId = workspaceId;

    this.workspaceIdSetted = true;

    this.setWorkspaceIdNull(false);
  }

  /**
   * Get workspaceId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceIdSetted() {
    return this.workspaceIdSetted;
  }

  /** Set workspaceId Null */
  public final void setWorkspaceIdNull() {

    this.workspaceIdNull = true;
  }

  public final void setWorkspaceIdNull(boolean aNullFlag) {

    this.workspaceIdNull = aNullFlag;
  }

  public final boolean isWorkspaceIdNull() {

    return this.workspaceIdNull;
  }

  private String workspaceConfigItem;

  /** Attribute workspaceConfigItem Be Seted Falg */
  private boolean workspaceConfigItemSetted = false;

  /** Attribute workspaceConfigItem is Null Falg */
  private boolean workspaceConfigItemNull = false;

  /**
   * Get workspaceConfigItem
   *
   * @return String
   */
  public final String getWorkspaceConfigItem() {

    if (isWorkspaceConfigItemNull()) {
      return null;
    } else {
      return StringUtils.trim(workspaceConfigItem);
    }
  }

  /**
   * Set workspaceConfigItem
   *
   * @param String
   */
  public final void setWorkspaceConfigItem(String workspaceConfigItem) {

    this.workspaceConfigItem = StringUtils.trim(workspaceConfigItem);

    this.workspaceConfigItemSetted = true;

    this.setWorkspaceConfigItemNull(this.workspaceConfigItem == null);
  }

  /**
   * Get workspaceConfigItem Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceConfigItemSetted() {
    return this.workspaceConfigItemSetted;
  }

  /** Set workspaceConfigItem Null */
  public final void setWorkspaceConfigItemNull() {

    this.workspaceConfigItemNull = true;
  }

  public final void setWorkspaceConfigItemNull(boolean aNullFlag) {

    this.workspaceConfigItemNull = aNullFlag;
  }

  public final boolean isWorkspaceConfigItemNull() {

    return this.workspaceConfigItemNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof WorkspaceConfigProperty) == false) {
      return false;
    }
    WorkspaceConfigProperty other = (WorkspaceConfigProperty) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("configProperty=");
    buffer.append(this.configProperty);

    buffer.append("configValue=");
    buffer.append(this.configValue);

    buffer.append("description=");
    buffer.append(this.description);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("workspaceConfigId=");
    buffer.append(this.workspaceConfigId);

    buffer.append("workspaceId=");
    buffer.append(this.workspaceId);

    buffer.append("workspaceConfigItem=");
    buffer.append(this.workspaceConfigItem);

    buffer.append("]");

    return buffer.toString();
  }
}
